package com.kmair.caiwu.attendance.services;

import com.kmair.caiwu.attendance.dao.VacationStatusMapper;
import com.kmair.caiwu.attendance.pojo.VacationStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class VacationStatusService {
    private final VacationStatusMapper dao;

    @Autowired
    public VacationStatusService(VacationStatusMapper dao) {
        this.dao = dao;
    }

    @Transactional(propagation = Propagation.SUPPORTS)
    public List<VacationStatus> selectSelective(VacationStatus record) {
        return dao.selectSelective(record);
    }


}
